package com.hd.entity;
import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 水果 实体类
 * @author <a href="mailto:hzhh123@sina.cn">hzhh123</a>
 * @date 2018-07-17 04:23
 *
 * @version 1.0
 *
 */
@Entity
@Table(name = "fruit")
public class Fruit implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	* id
	*/
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	private Integer id;
	/**
	* 名称
	*/
	@Column(name="name")
	private String name;
	/**
	* 价格
	*/
	@Column(name="price")
	private Integer price;
	/**
	 * 关联人员id
	 */
	@Column(name="person_id")
	private String personId;


	public String getName(){
		return name;
	}
	public void setName(String name){
		this.name=name;
	}
	public Integer getPrice(){
		return price;
	}
	public void setPrice(Integer price){
		this.price=price;
	}
	public Integer getId(){
		return id;
	}
	public void setId(Integer id){
		this.id=id;
	}
	public String getPersonId() {
		return personId;
	}
	public void setPersonId(String personId) {
		this.personId = personId;
	}
	
}
